package com.bawei.play.model

import com.bawei.common.entity.SimpleVideoEntity
import com.bawei.network.BaseResponse
import com.bawei.play.api.PlayServerApi
import javax.inject.Inject

/**
 * Author: Jason Zhang
 * Date: 2024/3/4
 * Desc:
 */
class PlayVideoRepository @Inject constructor(private val apiServer: PlayServerApi) {

    suspend fun getRecommendVideo(page:Int, pageSize: Int): BaseResponse<List<SimpleVideoEntity>> {
        return apiServer.getRecommendSimpleVideo(page, pageSize)
    }

    suspend fun getVideoByChannelId(channelId:String, page:Int, pageSize: Int): BaseResponse<List<SimpleVideoEntity>> {
        return apiServer.getSimpleVideoByChannelId(channelId, page, pageSize)
    }


}